package com.didd.core.common.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 分页查询request
 *
 * @author diddd
 * @date 2019/07/15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PageRequest extends BaseRequest {

    private static final int DEFAULT_PAGE = 1;
    private static final int DEFAULT_PAGE_SIZE = 10;

    /**
     * 当前页
     */
    private int page = DEFAULT_PAGE;
    /**
     * 总页数
     */
    private int pageSize = DEFAULT_PAGE_SIZE;

}
